import time
import Page
from Page import LauncherService
from Base.Base import Base
from selenium.webdriver.common.by import By


class LauncherServiceIndexPage(Base):
    """
    桌面服务首页页面

    """

    def __init__(self, driver):
        Base.__init__(self, driver)

        # 首页出行按钮
        self.index_out_btn = (By.XPATH, LauncherService.RESOURCE_ID.format("id_1"))

    def get_out(self):
        """
        返回出行按钮

        :return:
        """

        return self.find_element_o(self.index_out_btn)

